<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            border:  1px solid #333;
            width: 200px;
            overflow: hidden;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 3;
            text-overflow: ellipsis;
        }
    </style>
</head>
<body>
    <div>你是个麻瓜你是个麻瓜你是个麻瓜你是个麻瓜你是个麻瓜你是个麻瓜麻瓜你是个麻瓜你是个麻瓜</div>
</body>
</html>